package dto

import gormadapter "github.com/casbin/gorm-adapter/v3"

type OldRolePolicy struct {
	OldRoleName string `json:"old_role_name" binding:"required"`
	OldUrl      string `json:"old_url" binding:"required"`
	OldMethod   string `json:"old_method" binding:"required"`
	RoleName    string `json:"role_name" binding:"required"`
	Url         string `json:"url" binding:"required"`
	Method      string `json:"method" binding:"required"`
}

// UpdateCasbinRole 修改角色时的请求参数
type UpdateCasbinRole struct {
	gormadapter.CasbinRule `json:"gormadapter_casbin_rule"`
	RoleName               string `json:"role_name" gorm:"column:role_name"`
	Ordered                int    `json:"ordered" gorm:"column:ordered"`
	Status                 int    `json:"status" gorm:"column:status"`
}

// DeleteRoleIds 删除角色时的请求参数
type DeleteRoleIds struct {
	RoleIds []int `json:"role_ids"`
}
